//
//  SIXCover.m
//  discover
//
//  Created by 张天兵 on 16/5/23.
//  Copyright © 2016年 张天兵. All rights reserved.
//

#import "SIXCover.h"

@implementation SIXCover

+ (void)show {
    
    SIXCover *cover = [[SIXCover alloc] initWithFrame:[UIScreen mainScreen].bounds];
    cover.backgroundColor = [UIColor blackColor];
    cover.alpha = 0.3;
    
    [[UIApplication sharedApplication].keyWindow addSubview:cover];
}


+ (void)hide {
    
    for (UIView *childView in [UIApplication sharedApplication].keyWindow.subviews) {
        if ([childView isKindOfClass:self]) {
            [childView removeFromSuperview];
        }
    }
}


@end
